package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdOrderEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdOrderCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdOrderUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdOrderSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdOrderOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdOrderResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdOrderRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdOrderConverter;
import com.lion.ball.modules.orderfood.service.def.OfdOrderService;
import com.lion.ball.modules.orderfood.web.api.OfdOrderApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 订单 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/order")
public class OfdOrderController implements OfdOrderApi, BaseCrudController<
        OfdOrderEntity,
        OfdOrderCreateParam,
        OfdOrderUpdateParam,
        OfdOrderSearchParam,
        OfdOrderOrderParam,
        OfdOrderResult,
        OfdOrderRepository,
        OfdOrderConverter,
        OfdOrderService
        > {

    @Autowired
    OfdOrderService ofdOrderService;

    @Override
    public OfdOrderService getService() {
        return ofdOrderService;
    }
}